from redis import StrictRedis
r = StrictRedis.from_url('redis://127.0.0.1:6381')
p = r.pipeline()
p.set('a', 100)
p.set('b', 500)
p.get('a')
p.get('b')
ret = p.execute()
print(ret)